import {meCollectORCancel} from "@/api/api";
import {ElMessage} from "element-plus";

let meCollect = (id) =>{
    let params = {
        topicID:id
    }
    meCollectORCancel(params).then(res =>{
        console.log(res);
        ElMessage({type:'success',message:res.data.message})
    }).catch(err =>{
        ElMessage({type:'error',message:err.message})
    })
}

export {
    meCollect
}
